package com.bitejiuyeke.forum.services;

import com.bitejiuyeke.forum.model.ArticleReply;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {
    /**
     *  新增帖子回复
     * @param articleReply
     */
    @Transactional  //事务管理
    void create(ArticleReply articleReply);

    /**
     * 根据帖子Id查询所有的回复
     * @param articleId  帖子Id
     * @return
     */
    List<ArticleReply> selectByArticleId( Long articleId);

}
